home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global game, text, bedtime
- set the volume of sound 1 to 256
- set the volume of sound 2 to 256
- puppetSound("j11")
- updateStage()
- repeat while the soundBusy of 1
- nothing()
- end repeat
- if bedtime then
- if the soundLevel = 0 then
- go("exit", "thatitle")
- else
- set the soundLevel to the soundLevel - 1
- go("X" & text, "THFA")
- end if
- else
- goback()
- end if
- end
-